#ifndef		__WINDOWCODE__
#define		__WINDOWCODE__

#include	"AWindow.hpp"

#include	"SubWinWarning.hpp"
#include	"SubWinLines.hpp"
#include	"SubWinCode.hpp"
#include	"AColor.hpp"

class	WindowCode : public AWindow, AColor
{
public:
  WindowCode(unsigned int heightPercentage, unsigned int widthPercentage);
  ~WindowCode();
  void		createSubWindows();
  void		setContentWin(const char *name_file);
  virtual void	update(bool focus);
  virtual void	checkEvent(int event);

public:
  SubWinCode		*getSubWinCode() { return this->_subWinCode; }
  
private:
  SubWinWarning		*_subWinWarning;
  SubWinLines		*_subWinLines;
  SubWinCode		*_subWinCode;
};

#endif
